<template>
	<view class="mainpadding2">
		<view class="pdl flexbetween margin_top" v-for="item in yhdhList" :key="item.id" @click="checkyhFn(item)">
			<view class="xiaohei titletext bold" style="font-size: 40rpx;">{{item.bank_dh}} {{item.bank_name}}</view>
			<view class="wiexuanzhongs"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				yhdhList:[]
			}
		},
		onLoad() {
			this.getyhdh()
		},
		methods: {
			checkyhFn(item){
				uni.$emit("checkyhdh",item)
				uni.navigateBack(1)
			},
			getyhdh(){
				this.http.request('/api/index/getbank', 'POST',{
				} ).then(res => {
					this.yhdhList = res.data
				})
			},
		}
	}
</script>

<style>

</style>
